#include <sys/wait.h>
#include <iostream>
using namespace std;
#include <unistd.h>
int main()
{

    signal(17,SIG_IGN);
    for(int i=0;i<10;i++)
    {
    pid_t id=fork();
    if(id==0)
    {
        //child
        cout<<"i am a child process ,process id is: "<<getpid()<<"  ppid is:"<<getppid()<<endl;
        exit(0);
    }
    sleep(1);
    }
    //farther
    while(true)
    {
        cout<<"i am farther process!!"<<endl;
        sleep(1);
    }
    return 0;
}